#!/bin/bash
# haha

WORKSPACE=/home/hjbai/hongjielib
package=`echo $PWD | sed 's/.*\/src\/\(.*\)/\1/g'`

pushd $WORKSPACE/python
python gen.py //$package:$1 $WORKSPACE/src/Makefile
popd
pushd $WORKSPACE/src
make all
popd
